import Vue from 'vue';
import Vuex from 'vuex';
import cartModule from './modules/cart';
import userModule from './modules/user';

Vue.use(Vuex)

const store = new Vuex.Store({
    strict: true,
    state: {
    },
    mutations: {
    },
    actions: {

    },
    getters: {

    },
    modules: {
        // 模块名:模块对象
        cart: cartModule,
        user: userModule
    }
})

export default store